package com.chen.service.serviceimpl;

import com.chen.dao.TeacherWithBuildingDao;
import com.chen.pojo.TeacherWithBuilding;
import com.chen.service.TeacherWithBuildingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherWithBuildingServiceImpl implements TeacherWithBuildingService {
    @Autowired
    private TeacherWithBuildingDao teacherWithBuildingDao;

    @Override
    public void addWith(TeacherWithBuilding teacherWithBuilding) {
        teacherWithBuildingDao.addWith(teacherWithBuilding);
    }

    @Override
    public void deleteWith(TeacherWithBuilding teacherWithBuilding) {
        teacherWithBuildingDao.deleteWith(teacherWithBuilding);
    }
}
